# Contributor: Duncan Bellamy <dunk@denkimushi.com>
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
pkgname=py3-hatchling
_pkgreal=${pkgname#"py3-"}
pkgver=1.5.0
pkgrel=0
pkgdesc="Modern, extensible Python build backend"
url="https://ofek.dev/projects/hatch/"
license="MIT"
arch="noarch"
depends="python3 py3-editables py3-packaging py3-pathspec py3-pluggy py3-tomli"
makedepends="py3-build py3-installer py3-poetry-core"
source="https://github.com/ofek/hatch/archive/refs/tags/hatchling-v$pkgver.tar.gz"
builddir="$srcdir/hatch-$_pkgreal-v$pkgver"
options="!check"

build() {
	GIT_DIR=. python3 -m build --no-isolation --wheel backend
}

package() {
	python3 -m installer -d "$pkgdir" \
		backend/dist/$_pkgreal-$pkgver-py3-none-any.whl
}

sha512sums="
9e5498b9da3a1f756e0f3e40daa63e45017588332da4197ac83b8402219bb9501b9c498dd881c5812b2b8903af591e4c6146aaf6dea8cc7b6bc664a85dee74e6  hatchling-v1.5.0.tar.gz
"
